//
//  YNSDatePickerManager.m
//  DataPickerTest
//
//  Created by 俞乃胜 on 2023/12/14.
//

#import "YNSDatePickerManager.h"
//屏幕宽度
#define screenWigth [[UIScreen mainScreen] bounds].size.width
//屏幕高度
#define screenHeight [[UIScreen mainScreen] bounds].size.height
@interface YNSDatePickerManager ()

@end

@implementation YNSDatePickerManager

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor colorWithWhite:1 alpha:0.5];
    YNSDatePickerView *dpview = [[YNSDatePickerView alloc]initWithFrame:CGRectMake(0, screenHeight-250, screenWigth, 250)];
    dpview.finishBlock = ^(NSDate * _Nonnull date) {
        [self dismissViewControllerAnimated:YES completion:nil];
    };
    [self.view addSubview:dpview];
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
